package com.xinsoft.entity.dto;

import com.xinsoft.entity.po.ScmOutsourcingContract;
import com.xinsoft.entity.po.ScmOutsourcingContractItem;
import com.xinsoft.entity.po.ScmOutsourcingContractPay;
import com.xinsoft.entity.po.SysFileHis;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
public class ScmOutsourcingContractDTO extends ScmOutsourcingContract {

    @Valid
    @NotEmpty(message = "委外合同明细不能为空")
    private List<ScmOutsourcingContractItem> scmOutsourcingContractItemList;

    @Valid
    @NotEmpty(message = "外合同付款条件不能为空")
    private List<ScmOutsourcingContractPay> scmOutsourcingContractPayList;

    /**
     * 附件列表
     */
    private List<SysFileHis> sysFileHisList;
}
